<#include "../common/common.ftl">
<#include "../common/window.ftl">
<#assign windowId = request.getAttribute("jwas_single_window_id")>
<#assign window = session.getAttribute(windowId)>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<base href="${basePath}">
<title>${window?string}</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="StyleSheet" href="cep/css/cep.css" type="text/css"/>
</head>
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript" src="cep/js/validation/validation.js"></script>
<script type="text/javascript" src="cep/js/validation/form_auto_validation.js"></script>
<script type="text/javascript" src="cep/js/sort.js"></script>
<body>
<b>${window.desc?string}</b><span style="padding-left:50px;color: #700700" id="easy_mana_err_span">${message?if_exists}<font color="red"> ${err_msg?if_exists}</font></span>
<#if !(window?exists)>
	no window
<#else>
   	<!-- 显示表属性，并且以表单形式呈现 -->
   	<#assign rowNum=window.dispCol>
   	<#assign rowNum = rowNum?int>
	<form name="form_jump_page" method="${window.method}" action="${window.action}">
	<INPUT type="hidden" name="action" value="topage" />
	<INPUT type="hidden" name="toPage" value=""/>
	</form>
	<FORM name="${window.formName}" method= "${window.method}" action="${window.action}">
	<INPUT type="hidden" name="jwas_single_window_id" value="${jwas_single_window_id}"/>
	<INPUT type="hidden" name="action" value="query" />
	<TABLE width="100%">
	<#assign posi=-1>
	<@output_fields window.fields/>
	<!-- 操作按纽 -->
	<tr><td colspan="4">
	<#if window.methods?exists>
		<@output_methods window.methods/>
	</#if>
	</td></tr>
	</TABLE>
	</FORM>
</#if>
<hr>
<!--显示结果集-取出Table对象-->
<#assign tableSessionName="window_${window.id}">
<#if request.getAttribute(tableSessionName)?exists>
    <#assign dtable=request.getAttribute(tableSessionName)/>
    <!-- 打印表格 -->
    <@output_win_table dtable/>
</#if>
<div id="display" class="display"></div>
</body>
<script type="text/javascript" src="cep/js/window.js"></script>
<script type="text/javascript" src="cep/js/window_copy.js"></script>
<script language="javascript">
<#if dtable?exists>
setTableId("${dtable.id?if_exists}");
</#if>
setFormName("${window.formName}");
</script>
</html>